package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_api_main")
public class DevtApiMainEntity {
    private String id;
    private String bz;
    private Boolean cancel;
    private String dm;
    private String flid;
    private String mc;
    private String pym;
    private String url;
    private Integer xh;
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "bz", nullable = true, length = 2147483647)
    public String getBz() {
        return bz;
    }
    
    public void setBz(String bz) {
        this.bz = bz;
    }
    
    @Basic
    @Column(name = "cancel", nullable = true)
    public Boolean getCancel() {
        return cancel;
    }
    
    public void setCancel(Boolean cancel) {
        this.cancel = cancel;
    }
    
    @Basic
    @Column(name = "dm", nullable = true, length = 255)
    public String getDm() {
        return dm;
    }
    
    public void setDm(String dm) {
        this.dm = dm;
    }
    
    @Basic
    @Column(name = "flid", nullable = true, length = 64)
    public String getFlid() {
        return flid;
    }
    
    public void setFlid(String flid) {
        this.flid = flid;
    }
    
    @Basic
    @Column(name = "mc", nullable = true, length = 255)
    public String getMc() {
        return mc;
    }
    
    public void setMc(String mc) {
        this.mc = mc;
    }
    
    @Basic
    @Column(name = "pym", nullable = true, length = 255)
    public String getPym() {
        return pym;
    }
    
    public void setPym(String pym) {
        this.pym = pym;
    }
    
    @Basic
    @Column(name = "url", nullable = true, length = 255)
    public String getUrl() {
        return url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    @Basic
    @Column(name = "xh", nullable = true)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtApiMainEntity that = (DevtApiMainEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(bz, that.bz) && Objects.equals(cancel, that.cancel) && Objects.equals(dm, that.dm) && Objects.equals(flid, that.flid) && Objects.equals(mc, that.mc) && Objects.equals(pym, that.pym) && Objects.equals(url, that.url) && Objects.equals(xh, that.xh);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, bz, cancel, dm, flid, mc, pym, url, xh);
    }
}
